<template>
  <div class="cc">
    <a :class="['cc_item', index == 0 ? 'active' : '']" @click="tabList(0,'relation')"
      >相关度</a
    >
    <a :class="['cc_item', index == 1 ? 'active' : '']" @click="tabList(1,'voice')"
      >最多声音</a
    >
    <a :class="['cc_item', index == 2 ? 'active' : '']" @click="tabList(2,'fans')"
      >最多粉丝</a
    >
  </div>
</template>

<script>
export default {
  data() {
    return {
      index: 0,
      condition:"relation"
    };
  },
  methods: {
    tabList(i,condition) {
      this.index = i;
      this.condition = condition
      this.$emit('zhubo',condition)
    },
  },
};
</script>

<style lang="scss" scoped>
.cc {
  display: flex;
  height: 40px;
  border-bottom: 1px solid #e8e8e8;
  a {
    flex: 1;
    display: block;
    text-align: center;
    line-height: 40px;
    color: #72727b;
    font-size: 14px;
  }
  a.active {
    color: #fe7959;
  }
}
</style>

